home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / colors.h < prev    next >
C/C++ Source or Header  |  1979-12-31  |  2KB  |  68 lines

  1. /* --------------------------------- colors.h ------------------------------- */
  2.  
  3. /* This is part of the flight simulator 'fly8'.
  4.  * Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  5. */
  6.  
  7. /* colors definition.
  8. */
  9. #ifndef FLY8_COLORS
  10. #define FLY8_COLORS
  11.  
  12. #define C_RGB(r,g,b)    (((0x0ffL&(b))<<16)+((0x0ffL&(g))<<8)+(0x0ffL&(r)))
  13. #define C_RGB_R(c)    (0x0ff & (Uint)((c)      ))
  14. #define C_RGB_G(c)    (0x0ff & (Uint)((c) >>  8))
  15. #define C_RGB_B(c)    (0x0ff & (Uint)((c) >> 16))
  16.  
  17. #define C_BLACK        C_RGB (0x00, 0x00, 0x00)
  18.  
  19. #define C_RED        C_RGB (0xff, 0x00, 0x00)
  20. #define C_GREEN        C_RGB (0x00, 0xff, 0x00)
  21. #define C_BLUE        C_RGB (0x00, 0x00, 0xff)
  22.  
  23. #define C_CYAN        C_RGB (0x00, 0xff, 0xff)
  24. #define C_MAGENTA    C_RGB (0xff, 0x00, 0xff)
  25. #define C_YELLOW    C_RGB (0xff, 0xff, 0x00)
  26.  
  27. #define C_WHITE        C_RGB (0xff, 0xff, 0xff)
  28. #define C_LIGHTGRAY    C_RGB (0xa0, 0xa0, 0xa0)
  29. #define C_GRAY        C_RGB (0x60, 0x60, 0x60)
  30.  
  31. #define C_LIGHTRED    C_RGB (0xc0, 0x60, 0x60)
  32. #define C_LIGHTGREEN    C_RGB (0x80, 0xff, 0x80)
  33. #define C_LIGHTBLUE    C_RGB (0x80, 0x80, 0xff)
  34.  
  35. #define C_LIGHTCYAN    C_RGB (0x80, 0xff, 0xff)
  36. #define C_LIGHTMAGENTA    C_RGB (0xff, 0x80, 0xff)
  37.  
  38. #define C_DYELLOW    C_RGB (0x80, 0x80, 0x00)
  39. #define C_SKYBLUE    C_RGB (0x00, 0x00, 0x80)
  40.  
  41. #define C_DGREEN    C_RGB (0x00, 0x20, 0x00)
  42.  
  43. #define C_BROWN        C_RGB (0x80, 0x40, 0x00)
  44.  
  45.  
  46. /* These are the portable color names.
  47. */
  48.  
  49. #define CC_DEFAULT    0x0ffff
  50. #define CC_BLACK    0
  51. #define CC_RED        1
  52. #define CC_BLUE        2
  53. #define CC_MAGENTA    3
  54. #define CC_GREEN    4
  55. #define CC_BROWN    5
  56. #define CC_GRAY        6
  57. #define CC_DYELLOW    7
  58. #define CC_YELLOW    8
  59. #define CC_LRED        9
  60. #define CC_LBLUE    10
  61. #define CC_LGRAY    11
  62. #define CC_SPARE1    12
  63. #define CC_SKYBLUE    13
  64. #define CC_DGREEN    14
  65. #define CC_WHITE    15
  66.  
  67. #endif
  68.